package com.yellowpage.alarm.dao;

import java.util.List;

import com.yellowpage.white.common.Constants;
import com.yellowpage.white.dao.BaseDaoHibernateImpl;

import com.yellowpage.alarm.data.AlarmInfo;

public class AlarmInfoDaoImpl extends BaseDaoHibernateImpl<AlarmInfo, Long>
		implements AlarmInfoDao {

	public AlarmInfoDaoImpl() {
		super(AlarmInfo.class);
	}

	@Override
	public List<AlarmInfo> getEffectiveAlarmInfos() {
		String hql = "from AlarmInfo where status=?";

		List<AlarmInfo> alarmInfos = this.getObjectListByConditions(hql,
				new Object[] { Constants.get("ALARMINFO_STATUS_INIT") });

		return alarmInfos;
	}

}